package com.project.core.config;

import com.project.core.util.JwtUtil;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author mengxj
 */
@Component
public class TokenProperties {

    @Resource
    private JwtUtil jwtUtil;

    public Long getTokenExpire() {
        return this.jwtUtil.getExpire() * 60 * 1000;
    }

    public Long getRefreshToken() {
        return this.getTokenExpire() * 2;
    }
}
